.class final Lcom/waiqin365/lightapp/product/e/c;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Landroid/content/Context;

.field final synthetic b:Lcom/waiqin365/lightapp/product/c/g;

.field final synthetic c:Z


# direct methods
.method constructor <init>(Landroid/content/Context;Lcom/waiqin365/lightapp/product/c/g;Z)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/e/c;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/product/e/c;->b:Lcom/waiqin365/lightapp/product/c/g;

    iput-boolean p3, p0, Lcom/waiqin365/lightapp/product/e/c;->c:Z

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    const v3, 0x7f08013b

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/product/b/a/n;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/b/a/n;->b()Z

    move-result v1

    if-eqz v1, :cond_8

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/product/b/a/n;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    const-string/jumbo v1, ""

    iget-object v0, v0, Lcom/waiqin365/lightapp/product/b/a/n;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    move-object v2, v1

    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/e/c;->a:Landroid/content/Context;

    invoke-static {v1}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v4

    const-string/jumbo v1, "prodId"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v4, v1}, Lcom/waiqin365/base/db/offlinedata/w;->b(Ljava/lang/String;)Lcom/waiqin365/lightapp/product/d/f;

    move-result-object v6

    const-wide/16 v4, 0x0

    :try_start_0
    const-string/jumbo v1, "storeCount"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Double;->doubleValue()D
    :try_end_0
    .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-wide v0

    :goto_1
    if-eqz v6, :cond_0

    invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v0

    invoke-virtual {v6, v0}, Lcom/waiqin365/lightapp/product/d/f;->i(Ljava/lang/Double;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/c;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/waiqin365/base/db/offlinedata/w;->a(Lcom/waiqin365/lightapp/product/d/f;)V

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v6}, Lcom/waiqin365/lightapp/product/d/f;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    move-object v2, v0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/NumberFormatException;->printStackTrace()V

    move-wide v0, v4

    goto :goto_1

    :cond_1
    const-string/jumbo v0, ","

    invoke-virtual {v2, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x0

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v2, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/c;->b:Lcom/waiqin365/lightapp/product/c/g;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/c;->b:Lcom/waiqin365/lightapp/product/c/g;

    invoke-interface {v0, v2}, Lcom/waiqin365/lightapp/product/c/g;->a(Ljava/lang/String;)V

    :cond_3
    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/c;->b:Lcom/waiqin365/lightapp/product/c/g;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/c;->b:Lcom/waiqin365/lightapp/product/c/g;

    invoke-interface {v0}, Lcom/waiqin365/lightapp/product/c/g;->a()V

    :cond_4
    return-void

    :cond_5
    iget-object v0, v0, Lcom/waiqin365/lightapp/product/b/a/n;->c:Ljava/lang/String;

    const-string/jumbo v1, ""

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/c;->a:Landroid/content/Context;

    invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    :cond_6
    iget-boolean v1, p0, Lcom/waiqin365/lightapp/product/e/c;->c:Z

    if-eqz v1, :cond_7

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/e/c;->a:Landroid/content/Context;

    const v3, 0x7f0802c1

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ","

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/e/c;->a:Landroid/content/Context;

    const v3, 0x7f08068b

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ":"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/e/c;->a:Landroid/content/Context;

    invoke-static {v1, v2}, Lcom/waiqin365/lightapp/product/e/b;->a(Ljava/lang/String;Landroid/content/Context;)V

    :cond_7
    iget-object v1, p0, Lcom/waiqin365/lightapp/product/e/c;->b:Lcom/waiqin365/lightapp/product/c/g;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/e/c;->b:Lcom/waiqin365/lightapp/product/c/g;

    invoke-interface {v1, v0}, Lcom/waiqin365/lightapp/product/c/g;->b(Ljava/lang/String;)V

    goto :goto_2

    :cond_8
    iget-boolean v0, p0, Lcom/waiqin365/lightapp/product/e/c;->c:Z

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/c;->a:Landroid/content/Context;

    invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/e/c;->a:Landroid/content/Context;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/product/e/b;->a(Ljava/lang/String;Landroid/content/Context;)V

    :cond_9
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/c;->b:Lcom/waiqin365/lightapp/product/c/g;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/c;->b:Lcom/waiqin365/lightapp/product/c/g;

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/e/c;->a:Landroid/content/Context;

    invoke-virtual {v1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/waiqin365/lightapp/product/c/g;->b(Ljava/lang/String;)V

    goto/16 :goto_2
.end method
